/*******************************************************************************
 * Copyright 2011 Alexandre Zglav and Morphiastic
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.morphiastic.tests.entities.shape;

import java.util.ArrayList;
import java.util.Map;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Entity;
import com.morphiastic.annotations.ElastiFieldEmbedded;
import com.morphiastic.annotations.ElastiMap;
import com.morphiastic.annotations.ElastiMorphed;

@Entity("shape")
@ElastiMorphed(typeName="rectangle")
public class Rectangle extends Parallelogram{

	
	@Embedded
	@ElastiMap(embeddedValueAnnotation=@ElastiFieldEmbedded)
	private Map<String, Triangle[]> mapWithEmbeddedArray;
	
	@Embedded
	@ElastiMap(embeddedValueAnnotation=@ElastiFieldEmbedded)
	private Map<String, ArrayList<Triangle>> mapWithEmbeddedArrayList;

	
	@ElastiMap
	private Map<String, String[]> mapWithStringArray;
	
	@ElastiMap
	private Map<String, ArrayList<String>> mapWithStringArrayList;
	
	
	
	
	/**
	 * @return the mapWithEmbeddedArray
	 */
	public Map<String, Triangle[]> getMapWithEmbeddedArray() {
		return mapWithEmbeddedArray;
	}

	/**
	 * @param mapWithEmbeddedArray the mapWithEmbeddedArray to set
	 */
	public void setMapWithEmbeddedArray(Map<String, Triangle[]> mapWithEmbeddedArray) {
		this.mapWithEmbeddedArray = mapWithEmbeddedArray;
	}

	/**
	 * @return the mapWithEmbeddedArrayList
	 */
	public Map<String, ArrayList<Triangle>> getMapWithEmbeddedArrayList() {
		return mapWithEmbeddedArrayList;
	}

	/**
	 * @param mapWithEmbeddedArrayList the mapWithEmbeddedArrayList to set
	 */
	public void setMapWithEmbeddedArrayList(
			Map<String, ArrayList<Triangle>> mapWithEmbeddedArrayList) {
		this.mapWithEmbeddedArrayList = mapWithEmbeddedArrayList;
	}

	/**
	 * @return the mapWithStringArray
	 */
	public Map<String, String[]> getMapWithStringArray() {
		return mapWithStringArray;
	}

	/**
	 * @param mapWithStringArray the mapWithStringArray to set
	 */
	public void setMapWithStringArray(Map<String, String[]> mapWithStringArray) {
		this.mapWithStringArray = mapWithStringArray;
	}

	/**
	 * @return the mapWithStringArrayList
	 */
	public Map<String, ArrayList<String>> getMapWithStringArrayList() {
		return mapWithStringArrayList;
	}

	/**
	 * @param mapWithStringArrayList the mapWithStringArrayList to set
	 */
	public void setMapWithStringArrayList(
			Map<String, ArrayList<String>> mapWithStringArrayList) {
		this.mapWithStringArrayList = mapWithStringArrayList;
	}
	
	
}
